package vip.ifmm.entity;

import javax.inject.Inject;
import javax.inject.Named;

public class ClassRoom{

    @Named("stu")
    @Inject
    public Person stu;

    @Named("teacher")
    @Inject
    public Person teacher;

    @Recordlog
    public Integer sleep(int i){
        System.out.println("ClassRoom Sleep");
        i = 1 / 0;
        return i;
    }

    @Override
    public String toString() {
        return  stu.music("1") + " " + teacher.music("1");
    }
}
